<template>
<div class="goods">
  <goodslistitem  v-for="(item,index) in goods" :goodsitem="item" :key="index" :class="index" ></goodslistitem>

</div>

</template>

<script>
import goodslistitem from "./goodslistitem.vue"

export default {
  name:'goodslist',
  components:{
    goodslistitem,

  },
  props:{
    goods:{
      type:Array,
     default(){
        return[]
      }
    }
  }
}
</script>

<style scoped>
  .goods{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    /*background-color: black;*/
  }

</style>
